package com.example.course.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 班级表
 * @Date 2025-04-22 15:36:52
 * @author Jasmine-drs
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("classes")
@ApiModel(value="Classes对象", description="班级表")
public class Classes implements Serializable {

    @NotNull(message = "[主键]不能为空")
    @ApiModelProperty("主键")
    private Integer id;

    @NotBlank(message = "[班级名]不能为空")
    @Size(max = 16, message = "编码长度不能超过16")
    @ApiModelProperty("班级名")
    private String name;

    @NotNull(message = "[教师id，指明班主任]不能为空")
    @ApiModelProperty("教师id，指明班主任")
    private Integer teacherId;


}
